# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=extundelete
pkgver=0.2.4
pkgrel=0
pkgdesc="Utility for recovering deleted files from ext2, ext3 or ext4 partitions by parsing the journal"
url="http://extundelete.sourceforge.net"
arch="all"
license="GPL-2.0"
makedepends="e2fsprogs-dev"
source="https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2
	extundelete-inode.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR=${pkgdir} install
}

sha512sums="5c896055b6fa3c38f283a043cca744513fdc1a60e212eac0c78fa868064a8eeb11f540c4cc5ca89ac68da0c1705a40fe45731c203b6748808f85e9870a207bcd  extundelete-0.2.4.tar.bz2
e15f06cb93f7b0f3809b2c7bb4547bd59d3ea778934b9fff7e6927f74347dda2a5fbb5567174499aae2c9024740356993934895f311e25517f3ee85e455c42f4  extundelete-inode.patch"
